package com.example.jyjava.dao;

import com.example.jyjava.bean.Collect;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CollectDao {
    public int addCollocted(Collect collect);
    public int getCollectCounts(@Param("userId") Integer userId,@Param("shopId") Integer shopId,@Param("type") String type);

    public List<Collect> getAllCollect(@Param("userId") Integer id);

    public int deleteDeleteType(@Param("id") Integer id);

    public List<Collect> getCollect(@Param("title")String title, @Param("pageStart")int PageStart, @Param("pageSize")int pageSize,@Param("userId") Integer userId);

    public int getCollectC(@Param("title")String title,@Param("userId") Integer userId);

    public Collect getCollectId(@Param("id") Integer id);
}
